package com.soyotec.algorithm.plugin;

import java.io.Serializable;

/**
 * 计算失败后目标设置类
 */
public class FailedRunConfig implements Serializable {

    /**
     * 计算失败后目标取值
     */
    private Double failedRunObjectiveValue;

    /**
     * 计算失败后目标惩罚阈值
     */
    private Double failedRunPenaltyValue;

    public FailedRunConfig() {}

    public FailedRunConfig(Double failedRunObjectiveValue, Double failedRunPenaltyValue) {
        this.failedRunObjectiveValue = failedRunObjectiveValue;
        this.failedRunPenaltyValue = failedRunPenaltyValue;
    }

    /**
     * 获取计算失败后目标的取值
     *
     * @return 计算失败后目标取值
     */
    public Double getFailedRunObjectiveValue() {
        return failedRunObjectiveValue;
    }

    /**
     * 设置计算失败后目标取值
     *
     * @param failedRunObjectiveValue 计算失败后目标取值
     */
    public void setFailedRunObjectiveValue(Double failedRunObjectiveValue) {
        this.failedRunObjectiveValue = failedRunObjectiveValue;
    }

    /**
     * 获取计算失败后目标惩罚阈值
     *
     * @return 计算失败后目标惩罚阈值
     */
    public Double getFailedRunPenaltyValue() {
        return failedRunPenaltyValue;
    }

    /**
     * 设置计算失败后目标惩罚阈值
     *
     * @param failedRunPenaltyValue 计算失败后目标惩罚阈值
     */
    public void setFailedRunPenaltyValue(Double failedRunPenaltyValue) {
        this.failedRunPenaltyValue = failedRunPenaltyValue;
    }
}
